package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MTeacherMapper;
import com.ruoyi.system.domain.MTeacher;
import com.ruoyi.system.service.IMTeacherService;

/**
 * 老师个人资料Service业务层处理
 * 
 * @author ZHANGQIBO
 * @date 2023-12-25
 */
@Service
public class MTeacherServiceImpl implements IMTeacherService 
{
    @Autowired
    private MTeacherMapper mTeacherMapper;

    /**
     * 查询老师个人资料
     * 
     * @param id 老师个人资料主键
     * @return 老师个人资料
     */
    @Override
    public MTeacher selectMTeacherById(Long id)
    {
        return mTeacherMapper.selectMTeacherById(id);
    }

    /**
     * 查询老师个人资料列表
     * 
     * @param mTeacher 老师个人资料
     * @return 老师个人资料
     */
    @Override
    public List<MTeacher> selectMTeacherList(MTeacher mTeacher)
    {
        return mTeacherMapper.selectMTeacherList(mTeacher);
    }

    @Override
    public List<MTeacher> selectCourseMTeacherList(String course) {
        return mTeacherMapper.selectCourseMTeacherList(course);
    }

    /**
     * 新增老师个人资料
     * 
     * @param mTeacher 老师个人资料
     * @return 结果
     */
    @Override
    public int insertMTeacher(MTeacher mTeacher)
    {
        return mTeacherMapper.insertMTeacher(mTeacher);
    }

    /**
     * 修改老师个人资料
     * 
     * @param mTeacher 老师个人资料
     * @return 结果
     */
    @Override
    public int updateMTeacher(MTeacher mTeacher)
    {
        return mTeacherMapper.updateMTeacher(mTeacher);
    }

    /**
     * 批量删除老师个人资料
     * 
     * @param ids 需要删除的老师个人资料主键
     * @return 结果
     */
    @Override
    public int deleteMTeacherByIds(Long[] ids)
    {
        return mTeacherMapper.deleteMTeacherByIds(ids);
    }

    /**
     * 删除老师个人资料信息
     * 
     * @param id 老师个人资料主键
     * @return 结果
     */
    @Override
    public int deleteMTeacherById(Long id)
    {
        return mTeacherMapper.deleteMTeacherById(id);
    }
}
